\name{CreateDatasetVector}
\alias{CreateDatasetVector}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Create a DatasetVector
}
\encoding{UTF-8}
\description{
根据指定的矢量数据集信息来创建矢量数据集。 
}
\usage{
CreateDatasetVector(ds, name, typeName, fieldInfos = NULL)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{ds}{
  数据源对象
}
  \item{name}{
  有效的结果数据集名称。可以通过\code{\link{GetAvailableDatasetName}}获取一个有效的数据集名称。
}
  \item{typeName}{
  数据集类型名称，包括“Point”, “Line”, “Region”, “Tabular”。
}
  \item{fieldInfos}{
  数据集属性字段信息。当属性字段为空时，将不创建字段。fieldInfos为list，list中每个元素可以为\code{\link{FieldInfo-class}}对象，也可以为一个list，其中每个list中含"name","type","caption","default","systemField","required","maxLength"等参数。
  例如
  field1 <- list("name" = "field1", "type" = "Int32", "caption" = "testField1")
  field2 <- list("name" = "field2", "type" = "Double", "caption" = "testField2")
  fields <- vector(mode = "list", length = 2)
  fields[[1]] <- field1
  fields[[2]] <- field2
}
}
\details{
%%  ~~ If necessary, more details than the description above ~~
}
\value{
创建数据集成功返回list
\item{datasource}{
  新的数据源对象。
  }
\item{datasetVector}{
  结果数据集对象。
  }
}
\references{
%% ~put references to the literature/web site here ~
}
\author{
%%  ~~who you are~~
}
\note{
%%  ~~further notes~~
}

%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
%% ~~objects to See Also as \code{\link{help}}, ~~~
}
\examples{

server <- system.file("/sampledata/ChangChun.udb", package="RSuperMap")
ds <- OpenDatasource(server, alias = "test", engine = "udb")

name <- GetAvailableDatasetName(ds, "point")
result <- CreateDatasetVector(ds, name, "Point")
new.dataset <- NULL
if(!is.null(result)){
  datasource <- result[["datasource"]]
  new.dataset <- result[["datasetVector"]]
}

ds <- CloseDatasource(ds)
}

% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ DatasetVector }% use one of  RShowDoc("KEYWORDS")
\keyword{supermap}